package com.zhq.blog.manage.domain.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zhq.blog.core.domain.admin.Operator;

@Controller
public class HomeController  extends BaseController{
	
	// 前台首页
//	@RequestMapping(value = {"index","/",""})
//	public BossModel index(){
//		return createModel("/index");
//	}
	//后台首页
	@RequestMapping(value={"admin","/admin","/admin/index","admin/index"})
	public BossModel index(HttpServletRequest request){
		Operator operator = this.getSession().getOperator(request);
		return createModel("admin/index");
	}
}
